package com.example.springboot.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.springboot.entity.Permission;
import com.example.springboot.entity.dto.AssginMenuDto;
import com.example.springboot.entity.vo.RouterVo;

import java.util.List;


public interface PermissionService extends IService<Permission> {

    List<Permission> findNodes();

    List<Permission> findMenuByRoleId(Long roleId);

    List<String> findMenuNameByRoleId(Long roleId);

    void doAssign(AssginMenuDto assginMenuDto);

    void removeMenuById(Long id);

    List<RouterVo> findUserMenuListByUserId(Long userId);
}
